home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10434 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  568 b 

  1. Path: csulb.edu!davidcho
  2. From: davidcho@csulb.edu (David Cho)
  3. Newsgroups: comp.lang.c
  4. Subject: operator % - compiler error
  5. Date: 17 Mar 1996 21:07:29 GMT
  6. Organization: Cal State Long Beach
  7. Message-ID: <4ihuuh$6ul@hatathli.csulb.edu>
  8. NNTP-Posting-Host: heart.engr.csulb.edu
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. When I try to compile, I get an erro message for the following line:        
  12.  
  13.  
  14. x=663608941*y%pow(2,32)  /*I want remainder*/
  15.  
  16. But the error message says "illegal use of floating point".  What does 
  17. that mean?  Isn't % used a an operator to calcuate the remainder?
  18.